package com.lucky.ebidding.service.interfaces;

import com.lucky.ebidding.model.Expert;
import com.lucky.ebidding.model.User;

import java.util.List;

/**
 * ClassName:ExpertServiceI
 * Package:com.lucky.ebidding.service.interfaces
 * Description:
 *
 * @Date:2020/5/13 17:22
 * @Author:857251389@qq.com
 *
 * */
public interface ExpertServiceI {
    /**
     * 通过UserId选择专家表字段
     * @param userId
     * @return
     */
    Expert selectByUserId(Integer userId);

    /**
     * 专家表补充信息添加
     * @param expert
     */
    void insertAdd(Expert expert);

    /**
     * 查询专家表所有信息
     * @return
     */
    List<Expert> selectAllExpert();

    /**
     * 改变专家审核状态
     * @param Id
     * @param status
     */
    int setStatus(Integer Id,Integer status,User user);

    /**
     * 通过人数和评标方向随机挑选专家 并向挑选专家发送通知
     * @param number
     * @param type
     * @param zbId
     * @param user
     * @return
     */
    List<Expert> selectExpert(Integer number,Integer type,Integer zbId, User user);
}
